﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SingleNews.ascx.cs" Inherits="YAF.Controls.SingleNews" %>
<%@ Import Namespace="YAF.Types.Constants" %>
<%@ Import Namespace="YAF.Utils.Helpers" %>
<tr class="<%= this.IsAlt ? "topicRow_Alt post_alt" : "topicRow post" %>">
    <td class="topicMain">
        <%
            const string linkParams = "t={0}";
        %>
        <a href="<%= YafBuildLink.GetLink(ForumPages.posts, linkParams, this.TopicRow["LinkTopicID"]) %>"
           class="post_link" title="<%= this.Get<IFormatMessage>().GetCleanedTopicMessage(this.TopicRow["FirstMessage"], this.TopicRow["LinkTopicID"]).MessageTruncated %>">
            <%= this.FormatTopicName() %>
        </a>
    </td>
    <td class="topicLastPost">
        <%= new DisplayDateTime {Format = DateTimeFormat.BothTopic, DateTime = this.TopicRow["Posted"]}.RenderToString() %>
    </td>
</tr>